package com.example.multithread.lock;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @ClassName LockDemo
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2020/5/13 11:24 AM
 * @Version 1.0
 */
public class LockDemo {
	private final static Logger log = LoggerFactory.getLogger(LockDemo.class);
	public static void main(String[] args) {
		ReentrantLock reentrantLock = new ReentrantLock(true);
		log.info("公平锁? {}", reentrantLock.isFair());
	}
}
